<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>

        *{
            padding: 0;
            margin: 0;
            list-style: none;
        }

        a{
            text-decoration: none;
        }

        .container{
            width: 200px;
            height: 200px;
            background-color: green;
        }

        .container:hover{
            /* transform: translate(100px,200px); */
                                /*  100px x轴的平移距离  200px  y轴的平移距离 */
            /* transform: translate(100px); */
            /* transform: translateX(200px); */
                                /* x平移200px */
            /* transform: translateY(200px); */
                                /* Y平移100px */
            /* 平移的是自身的尺寸的百分比 */
            transform: translateX(50%);
        }
        .w{
            width: 100px;
            height: 200px;
            background-color: green;
        }
    </style>
</head>
<body>
    <div class="container">

    </div>
    <div class="w">
        
    </div>
</body>
</html>